app.controller('UserInfoController',function ($scope,$http,$location,$window,$state,$localStorage) {
	$http.post(
        $scope.app.backendurl+"admin-user/view-user",
        {
           
            'username': $localStorage.cur_user.uname,                             
            'token':$localStorage.token                   

        }
    ).success(function (data) {
     //console.log(data);
      if(data.code==0&&data.msg=="成功"){
        $scope.aaData = data.data.user;     
      }
       if(data.code==20001){
         $location.path('access.signin');
       }
    }).error(function (data) {
        alert(data);
    })
})